package com.xy9860.user.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Random;

/**
 * @author xy9860
 * @Description 控制器
 * Copyright: Copyright (c) 2020
 * Company: Sichuan haiwujiang information technology Co., Ltd
 * @since 2020/7/1
 */
@RestController
@Slf4j
@RequestMapping("user")
public class UserController {

    private final Random random = new Random(98);

    @GetMapping("login")
    public String login() {
        return random.nextInt(99 + 1) + "";
    }

}
